package cn.appsys.controller;

import lombok.extern.log4j.Log4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
@Log4j
@Controller
public class zhuxiao {
    @RequestMapping("/logout")
    public String logout(HttpSession session, HttpServletRequest request) {
        log.debug("用户注销");
        request.getSession().invalidate();
        return "redirect:http://localhost:8080/BeyondPlatform";
    }
}
